﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="AukcjeInternetowe.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Alledrogo
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%: ViewBag.Message %></h2>
    <%
        LoginData data = Session["User"] as LoginData;
        string welcome = "Witaj na Alledrogo!";
        if (data != null)
        {
            welcome = String.Format("Witaj na Alledrogo, {0} {1}!", data.FirstName, data.LastName);
        }
    %>
    <p>
        <%: welcome %>
    </p>
</asp:Content>
